﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    console.log(keyValue);
    $(function () {
        if (null != keyValue && "" != keyValue) {
            $.ajax({
                url: "/Gas/PwdKey/GetFormJsonForUpdate",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/Gas/PwdKey/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">身份证号</th>
                <td class="formValue">
                    <input id="IDNumber" name="IDNumber" type="text" class="form-control required" placeholder="请输入身份证号" />
                </td>
            </tr>
        </table>
    </div>
</form>
